package com.xmcc.dao;

import com.xmcc.pojo.SysDept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysDeptMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysDept record);

    int insertSelective(SysDept record);

    SysDept selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysDept record);

    int updateByPrimaryKey(SysDept record);

    List<SysDept> queryAllSysDept();

    void updateChildLevel(@Param("beforeLevel") String beforeLevel, @Param("afterLevel") String afterLevel, @Param("id")Integer id);

    SysDept checkDeptName(@Param("deptName") String deptName, @Param("parentId") Integer parentId, @Param("id") Integer id);



}